<{include file ="header.tpl"}>
<{include file ="navibar.tpl"}>
<{include file ="sidebar.tpl"}>

<!--- START 以上内容不需更改，保证该TPL页内的标签匹配即可 --->

<{$osadmin_action_alert}>
<{$osadmin_quick_note}>

</div>
    <div class="block">
	<a href="#page-stats" class="block-heading" data-toggle="collapse">未拜访报警列表</a>
	<div id="page-stats" class="block-body collapse in">
		<table class="table table-striped">
			<thead>
			<tr>
				<th>#</th>
				<th>耗材货号</th>
				<th>开始日期</th>
				<th>使用天数</th>
				<th>到期日期</th>
				<th>距耗材到期时间</th>
				<th width="80px">操作</th>
			</tr>
			</thead>
			<tbody>							  
			<{foreach  from=$Consumables item=machineConsumables}>
			   <{if $machineConsumables.month_diff <= 6 && $machineConsumables.month_diff >= 0}>			 
				<tr>
				    <td><{$machineConsumables.machine_id}></td>
					<td><{$machineConsumables.consumable_item}></td>
					<td><{$machineConsumables.beg_time}></td>
					<td><{$machineConsumables.use_days}></td>
					<td><{$machineConsumables.end_time}></td>
					<td style="color:red;">距耗材到期还有不到半年</td>
					<td>
						<a href="machine_modify.php?method=modify&machine_id=<{$machineConsumables.machine_id}>" title="修改" ><i class="icon-pencil"></i></a>
						&nbsp;
					</td>
				</tr>
				<{elseif $machineConsumables.month_diff < 0}>
				<tr>
				    <td><{$machineConsumables.machine_id}></td>
					<td><{$machineConsumables.consumable_item}></td>
					<td><{$machineConsumables.beg_time}></td>
					<td><{$machineConsumables.use_days}></td>
					<td><{$machineConsumables.end_time}></td>
					<td style="color:red;">耗材已经到期</td>
					<td>
						<a href="machine_modify.php?method=modify&machine_id=<{$machineConsumables.machine_id}>" title="修改" ><i class="icon-pencil"></i></a>
						&nbsp;
					</td>
				</tr>
				<{/if}>
			<{/foreach}>
		  </tbody>
		</table>  
	</div>
	<!--- START 分页模板 --->
            <{$page_html}>
    <!--- END --->
</div>
<!---操作的确认层，相当于javascript:confirm函数--->
<{$osadmin_action_confirm}>

<!--- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 --->
<{include file="footer.tpl" }>